package it.win4buy.events
{
    /**
     *
     *	autore:
     *  pierangelo.mancusi@gmail.com
     *
     */

    import flash.events.Event;

    import it.win4buy.entities.UserDataVO;

    public class GetFlashVarsEvent extends Event
    {

        /**
         * Used when the flash var is !=null
         */
        public static const USERID_RESULT:String="GetFlashVarsEvent.USERID_RESULT";

        /**
         * Used when the flash var is !=null
         */
        public static const APPLICATION_MODE_RESULT:String="GetFlashVarsEvent.APPLICATION_MODE_RESULT";

        /**
         * Used when the flash var is == null
         */
        public static const USERID_FAULT:String="GetFlashVarsEvent.USERID_FAULT";

        /**
         * Used when the flash var is == null
         */
        public static const APPLICATION_MODE_FAULT:String="GetFlashVarsEvent.APPLICATION_MODE_FAULT";

        //-------------------------------------------
        //
        // Private Properties
        //
        //-------------------------------------------

        private var _obj:Object;

        //-------------------------------------------
        //
        // Getters / Setters
        //
        //-------------------------------------------

        public function get obj():Object
        {
            return _obj;
        }

        public function set obj(value:Object):void
        {
            _obj=value;
        }



        //-------------------------------------------
        //
        // Constructor
        //
        //-------------------------------------------

        public function GetFlashVarsEvent(type:String, obj:Object=null, bubbles:Boolean=false, cancelable:Boolean=false)
        {
            super(type, bubbles, cancelable);
            this.obj=obj;
        }


        override public function clone():Event
        {
            return new GetFlashVarsEvent(type, obj, bubbles, cancelable);
        }
        //-------------------------------------------
        //
        // Private Methods
        //
        //-------------------------------------------


    }
}